import request from '@/utils/request';

// 创建房间接口
export function roomAdd(data) {
  return request({
    url: '/createRoom',
    method: 'post',
    data
  });
}

// 查询房间列表
export function roomQuery(query) {
  return request({
    url: '/queryRoom',
    method: 'get',
    params: query
  });
}

// 删除房间
export function roomDelete(query) {
  return request({
    url: '/deleteRoom',
    method: 'delete',
    params: query
  });
}